<?php
	require("function.php");
	//judge();
	$con = getconnect('china');	
	$content=$_GET['text']; //搜索内容
	$sql="select * from agriskill where title like '%$content%';";

	$result=mysqli_query($con,$sql);
	$arr = array();
	$i=0;
	while($row=mysqli_fetch_assoc($result))
	{
		$arr[$i]=$row;
		$i++;
	}
	echo json_encode($arr);
?>
